﻿
namespace Prototype
{
    class Program
    {
        static void Main(string[] args)
        {
            Manager manager = new Manager();
            UnderlinePen upen = new UnderlinePen('~');
            MessageBox mbox = new MessageBox('*');
            MessageBox sbox = new MessageBox('/');

            manager.Register("Strong message", upen);
            manager.Register("Warning box", mbox);
            manager.Register("Slash box", sbox);

            IProduct p1 = manager.Create("Strong message");
            p1.Use("Hello, world.");
            IProduct p2 = manager.Create("Warning box");
            p2.Use("Hello, world.");
            IProduct p3 = manager.Create("Slash box");
            p3.Use("Hello, world.");
        }
    }
}
